package com.csdj.t301.cloud.entity;

import com.csdj.t301.cloud.annotation.Role;
import com.csdj.t301.cloud.annotation.Validator;

import java.util.List;

/**
 * author:cloud
 * date:2021/1/21 0021
 **/
@Role(value="admin",values = {"aaa","bbb"})
public class Person {
    private String name;
    @Validator(min=0,max=180)
    private Integer age;

    private Student student;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Role("value")
    public String doSomething(String target){
        System.out.println("do something");
        return target;
    }
}
